This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

The R-markdown definitie guide jsut came out! check it here.

Chek out also the cheat sheet here.

You can find the R-markdown document that can be used to produce this html file here

Lets try it now!

MISSING

1 Economic Indicators Interactive plot

1.1 With Code

1.1.1 Plot of the two variables

MISSING

start_year=2008
end_year=2011

worlDIndic=WDI(country = "all", indicator=c("SP.DYN.LE00.IN","NY.GDP.PCAP.CD"),
                start = start_year, end = end_year, extra = FALSE, cache = NULL)

names(worlDIndic)[names(worlDIndic)=="SI.POV.DDAY"]="Poverty %"
names(worlDIndic)[names(worlDIndic)=="SP.DYN.LE00.IN"]="LifeExpectancy"
names(worlDIndic)[names(worlDIndic)=="NY.GDP.PCAP.CD"]="GDPperCapita"

1.1.2 Data Frame downloaded

We can visualise the first rows of the data.frame MISSING

worlDIndicFirst = worlDIndic[1,]
# head(worlDindic)
plot_ly(worlDIndic, x = ~GDPperCapita, y = ~LifeExpectancy,
        size = ~GDPperCapita, text = ~paste("Country: ", country),
        type = "scatter",
        mode = "markers")
## Warning: Ignoring 107 observations
## Warning: `line.width` does not currently support multiple values.

MISSING The start and end year of this plot is 2008 and 2011 respectively.

1.1.3 Linear regression with life expectancy as dependent variable and GDP per Capita as independent variable

MISSING >There are 3 different ways to visualise tables in markdown. Can you find these in the cheatsheet? Which one are we using here?

simple_model = lm(LifeExpectancy ~ GDPperCapita,worlDIndic)
title = "Linear Relation between GDP per Capita and Life expectancy"
table = stargazer(simple_model, type="html", report=('vc*p'),column.labels=c("Dependent Variable"), dep.var.caption = title, dep.var.labels.include = TRUE,model.names=FALSE, align=TRUE, column.sep.width = "5000pt")
Linear Relation between GDP per Capita and Life expectancy
LifeExpectancy
Dependent Variable
GDPperCapita 0.0002***
p = 0.000
Constant 66.637***
p = 0.000
Observations 949
R2 0.361
Adjusted R2 0.360
Residual Std. Error 6.709 (df = 947)
F Statistic 534.589*** (df = 1; 947)
Note: p<0.1; p<0.05; p<0.01
simple_model = lm(LifeExpectancy ~ GDPperCapita,worlDIndic)
title = "Linear Relation between GDP per Capita and Life expectancy"

knitr::kable(worlDIndic, caption = "Table with kable")
Table with kable
iso2c country year LifeExpectancy GDPperCapita
1A Arab World 2008 69.64697 6115.2437
1A Arab World 2009 69.85143 5158.2505
1A Arab World 2010 70.04105 5917.2457
1A Arab World 2011 70.22389 6854.8445
1W World 2008 70.08346 9374.9151
1W World 2009 70.40560 8779.8868
1W World 2010 70.68293 9513.6178
1W World 2011 70.97182 10448.6823
4E East Asia & Pacific (excluding high income) 2008 73.07030 3091.0450
4E East Asia & Pacific (excluding high income) 2009 73.28365 3328.8669
4E East Asia & Pacific (excluding high income) 2010 73.48234 4008.9105
4E East Asia & Pacific (excluding high income) 2011 73.66913 4865.8540
7E Europe & Central Asia (excluding high income) 2008 69.87100 8366.3961
7E Europe & Central Asia (excluding high income) 2009 70.47055 6542.6862
7E Europe & Central Asia (excluding high income) 2010 70.77414 7756.5478
7E Europe & Central Asia (excluding high income) 2011 71.34176 9541.9977
8S South Asia 2008 66.03715 956.6285
8S South Asia 2009 66.43653 1036.0317
8S South Asia 2010 66.82676 1252.2293
8S South Asia 2011 67.20120 1373.8091
AD Andorra 2008 NA 47785.6591
AD Andorra 2009 NA 43339.3799
AD Andorra 2010 NA 39736.3541
AD Andorra 2011 NA 41098.7669
AE United Arab Emirates 2008 76.01200 45758.9055
AE United Arab Emirates 2009 76.18300 33072.5752
AE United Arab Emirates 2010 76.34400 35037.8927
AE United Arab Emirates 2011 76.49800 40434.3664
AF Afghanistan 2008 60.24300 373.3611
AF Afghanistan 2009 60.75400 445.8933
AF Afghanistan 2010 61.22600 553.3003
AF Afghanistan 2011 61.66600 603.5370
AG Antigua and Barbuda 2008 75.07800 14797.3684
AG Antigua and Barbuda 2009 75.24700 13082.2817
AG Antigua and Barbuda 2010 75.41200 12174.6979
AG Antigua and Barbuda 2011 75.57400 11931.2041
AL Albania 2008 75.94300 4370.5396
AL Albania 2009 76.28100 4114.1365
AL Albania 2010 76.65200 4094.3588
AL Albania 2011 77.03100 4437.1781
AM Armenia 2008 72.94600 4010.0270
AM Armenia 2009 73.11900 2993.8325
AM Armenia 2010 73.33100 3218.3817
AM Armenia 2011 73.57100 3526.9781
AO Angola 2008 56.18900 3868.5790
AO Angola 2009 57.23100 3347.8449
AO Angola 2010 58.19200 3531.4169
AO Angola 2011 59.04200 4299.0081
AR Argentina 2008 75.26800 8953.3593
AR Argentina 2009 75.43100 8161.3070
AR Argentina 2010 75.59500 10276.2605
AR Argentina 2011 75.76100 12726.9084
AS American Samoa 2008 NA 9871.9972
AS American Samoa 2009 NA 12058.2638
AS American Samoa 2010 NA 10352.8228
AS American Samoa 2011 NA 10375.9942
AT Austria 2008 80.43171 51708.7658
AT Austria 2009 80.33171 47963.1794
AT Austria 2010 80.58049 46858.0433
AT Austria 2011 80.98293 51374.9584
AU Australia 2008 81.39512 49535.2579
AU Australia 2009 81.54390 42709.8033
AU Australia 2010 81.69512 51936.8887
AU Australia 2011 81.89512 62411.7854
AW Aruba 2008 74.72500 27546.8994
AW Aruba 2009 74.87200 24631.4349
AW Aruba 2010 75.01600 24271.9404
AW Aruba 2011 75.15800 25324.7204
AZ Azerbaijan 2008 70.23800 5574.6038
AZ Azerbaijan 2009 70.64600 4950.2948
AZ Azerbaijan 2010 70.98700 5842.8058
AZ Azerbaijan 2011 71.26000 7189.6912
B8 Central Europe and the Baltics 2008 74.57754 14549.9073
B8 Central Europe and the Baltics 2009 74.93183 12258.5724
B8 Central Europe and the Baltics 2010 75.29535 12556.4916
B8 Central Europe and the Baltics 2011 75.88847 13881.2528
BA Bosnia and Herzegovina 2008 75.61900 5078.3146
BA Bosnia and Herzegovina 2009 75.75800 4701.3344
BA Bosnia and Herzegovina 2010 75.90500 4614.8290
BA Bosnia and Herzegovina 2011 76.06000 5054.3253
BB Barbados 2008 74.64800 16613.7192
BB Barbados 2009 74.81100 15922.9001
BB Barbados 2010 74.97300 15959.0298
BB Barbados 2011 75.13300 16610.4184
BD Bangladesh 2008 69.31200 615.7775
BD Bangladesh 2009 69.75900 681.1205
BD Bangladesh 2010 70.19800 757.6718
BD Bangladesh 2011 70.62600 835.7893
BE Belgium 2008 79.68049 48424.5756
BE Belgium 2009 80.03415 44880.5730
BE Belgium 2010 80.18293 44380.1766
BE Belgium 2011 80.58537 47702.8119
BF Burkina Faso 2008 55.61800 569.7613
BF Burkina Faso 2009 56.37600 552.7456
BF Burkina Faso 2010 57.09600 575.4465
BF Burkina Faso 2011 57.76200 666.8404
BG Bulgaria 2008 72.96341 7261.7545
BG Bulgaria 2009 73.41220 6969.5586
BG Bulgaria 2010 73.51220 6843.2669
BG Bulgaria 2011 74.16341 7813.8067
BH Bahrain 2008 75.77000 23067.5653
BH Bahrain 2009 75.91300 19356.6724
BH Bahrain 2010 76.05600 20722.1039
BH Bahrain 2011 76.19900 22512.1596
BI Burundi 2008 53.92600 196.2473
BI Burundi 2009 54.38600 204.9447
BI Burundi 2010 54.86100 231.1943
BI Burundi 2011 55.33800 260.4799
BJ Benin 2008 58.65400 820.1513
BJ Benin 2009 59.00900 793.4524
BJ Benin 2010 59.31900 757.6959
BJ Benin 2011 59.59500 825.9428
BM Bermuda 2008 79.23659 93605.7482
BM Bermuda 2009 79.38844 88463.3128
BM Bermuda 2010 79.28854 88207.3276
BM Bermuda 2011 81.15268 85973.1584
BN Brunei Darussalam 2008 76.65600 37951.2806
BN Brunei Darussalam 2009 76.69900 27965.4750
BN Brunei Darussalam 2010 76.71900 35268.1012
BN Brunei Darussalam 2011 76.73400 47017.0273
BO Bolivia 2008 65.27200 1736.9351
BO Bolivia 2009 65.84700 1776.8665
BO Bolivia 2010 66.40800 1981.1607
BO Bolivia 2011 66.94500 2377.6759
BR Brazil 2008 73.12900 8787.6107
BR Brazil 2009 73.48800 8553.3814
BR Brazil 2010 73.83800 11224.1541
BR Brazil 2011 74.17400 13167.4729
BS Bahamas, The 2008 74.41000 30188.4844
BS Bahamas, The 2009 74.59100 28129.6075
BS Bahamas, The 2010 74.76100 27979.1149
BS Bahamas, The 2011 74.92300 27472.2562
BT Bhutan 2008 66.79200 1795.1813
BT Bhutan 2009 67.31500 1770.2345
BT Bhutan 2010 67.79000 2178.9214
BT Bhutan 2011 68.22700 2458.0460
BW Botswana 2008 56.91900 5623.3796
BW Botswana 2009 58.45000 5185.7298
BW Botswana 2010 59.86800 6346.1562
BW Botswana 2011 61.17900 7645.2146
BY Belarus 2008 70.45610 6377.3697
BY Belarus 2009 70.40732 5176.2638
BY Belarus 2010 70.40488 6029.3968
BY Belarus 2011 70.55366 6519.2302
BZ Belize 2008 69.51700 4470.2208
BZ Belize 2009 69.61100 4258.7886
BZ Belize 2010 69.67600 4344.1502
BZ Belize 2011 69.73100 4517.1377
CA Canada 2008 80.69512 46596.3360
CA Canada 2009 80.94634 40773.4544
CA Canada 2010 81.19756 47447.4760
CA Canada 2011 81.44878 52082.2108
CD Congo, Dem. Rep. 2008 55.74300 327.7677
CD Congo, Dem. Rep. 2009 56.35000 298.8070
CD Congo, Dem. Rep. 2010 56.90700 334.2317
CD Congo, Dem. Rep. 2011 57.41800 387.3236
CF Central African Republic 2008 46.19000 456.8618
CF Central African Republic 2009 46.86200 449.9612
CF Central African Republic 2010 47.56000 446.4437
CF Central African Republic 2011 48.28400 490.5104
CG Congo, Rep. 2008 58.32100 2881.5941
CG Congo, Rep. 2009 59.45200 2255.3331
CG Congo, Rep. 2010 60.47300 2737.3423
CG Congo, Rep. 2011 61.37000 3196.6475
CH Switzerland 2008 81.99268 72487.8459
CH Switzerland 2009 82.04390 69927.4688
CH Switzerland 2010 82.24634 74605.7210
CH Switzerland 2011 82.69512 88415.6281
CI Cote d’Ivoire 2008 49.32100 1242.4310
CI Cote d’Ivoire 2009 49.88300 1217.7492
CI Cote d’Ivoire 2010 50.42300 1219.7491
CI Cote d’Ivoire 2011 50.94500 1214.7039
CL Chile 2008 78.19300 10781.3661
CL Chile 2009 78.32000 10243.3282
CL Chile 2010 78.45400 12860.1776
CL Chile 2011 78.59900 14705.6924
CM Cameroon 2008 54.53500 1396.8250
CM Cameroon 2009 54.99600 1338.8844
CM Cameroon 2010 55.42400 1309.1222
CM Cameroon 2011 55.83200 1429.6476
CN China 2008 74.80800 3471.2481
CN China 2009 75.03200 3838.4340
CN China 2010 75.23600 4560.5126
CN China 2011 75.42500 5633.7957
CO Colombia 2008 72.95200 5433.7204
CO Colombia 2009 73.14300 5148.4221
CO Colombia 2010 73.32500 6250.6550
CO Colombia 2011 73.50000 7227.7397
CR Costa Rica 2008 78.48100 6911.1362
CR Costa Rica 2009 78.61300 6809.3962
CR Costa Rica 2010 78.75600 8199.4146
CR Costa Rica 2011 78.91100 9186.5964
CU Cuba 2008 78.67200 5376.4476
CU Cuba 2009 78.83300 5484.7763
CU Cuba 2010 78.95900 5676.1414
CU Cuba 2011 79.06400 6075.9243
CV Cabo Verde 2008 71.88100 3638.9059
CV Cabo Verde 2009 71.89900 3444.5566
CV Cabo Verde 2010 71.94100 3312.8260
CV Cabo Verde 2011 72.01900 3670.4295
CW Curacao 2008 75.30976 NA
CW Curacao 2009 76.15610 NA
CW Curacao 2010 NA NA
CW Curacao 2011 77.47317 NA
CY Cyprus 2008 79.07100 35390.7049
CY Cyprus 2009 79.24500 32105.8159
CY Cyprus 2010 79.43000 30818.4640
CY Cyprus 2011 79.62000 32233.8394
CZ Czech Republic 2008 76.97561 22698.8540
CZ Czech Republic 2009 77.07805 19741.5976
CZ Czech Republic 2010 77.42439 19808.0711
CZ Czech Republic 2011 77.87317 21717.4579
DE Germany 2008 79.73659 45699.1983
DE Germany 2009 79.83659 41732.7073
DE Germany 2010 79.98780 41785.5569
DE Germany 2011 80.43659 46810.3280
DJ Djibouti 2008 59.34500 1214.0771
DJ Djibouti 2009 59.86500 1253.6574
DJ Djibouti 2010 60.38300 1325.9907
DJ Djibouti 2011 60.87000 1430.9869
DK Denmark 2008 78.44634 64322.0666
DK Denmark 2009 78.59756 58163.2936
DK Denmark 2010 79.10000 58041.4112
DK Denmark 2011 79.80000 61753.6601
DM Dominica 2008 NA 6446.6638
DM Dominica 2009 NA 6866.2249
DM Dominica 2010 NA 6912.4357
DM Dominica 2011 NA 6986.0467
DO Dominican Republic 2008 72.29000 5011.0379
DO Dominican Republic 2009 72.49800 4952.6775
DO Dominican Republic 2010 72.70200 5453.9269
DO Dominican Republic 2011 72.90100 5765.4965
DZ Algeria 2008 74.03200 4905.2549
DZ Algeria 2009 74.37400 3868.8312
DZ Algeria 2010 74.67600 4463.3947
DZ Algeria 2011 74.94400 5432.4133
EC Ecuador 2008 74.67800 4274.9521
EC Ecuador 2009 74.85900 4255.5657
EC Ecuador 2010 75.04600 4657.3024
EC Ecuador 2011 75.24400 5223.3518
EE Estonia 2008 73.77073 18094.5481
EE Estonia 2009 74.82439 14726.3183
EE Estonia 2010 75.42927 14638.6048
EE Estonia 2011 76.22927 17454.8434
EG Egypt, Arab Rep. 2008 69.98000 2011.2462
EG Egypt, Arab Rep. 2009 70.16700 2291.6671
EG Egypt, Arab Rep. 2010 70.35700 2602.4795
EG Egypt, Arab Rep. 2011 70.55000 2747.4803
ER Eritrea 2008 60.94000 326.0826
ER Eritrea 2009 61.59100 430.7544
ER Eritrea 2010 62.18100 482.1491
ER Eritrea 2011 62.71800 582.7755
ES Spain 2008 81.17561 35579.3099
ES Spain 2009 81.47561 32334.0055
ES Spain 2010 81.62683 30736.6279
ES Spain 2011 82.47561 31835.2888
ET Ethiopia 2008 59.58000 325.3826
ET Ethiopia 2009 60.64300 379.7566
ET Ethiopia 2010 61.62500 341.3099
ET Ethiopia 2011 62.50100 354.8464
EU European Union 2008 79.18314 38136.0900
EU European Union 2009 79.44231 33979.4950
EU European Union 2010 79.72485 33677.0026
EU European Union 2011 80.23987 36408.7244
F1 Fragile and conflict affected situations 2008 59.65431 1397.4072
F1 Fragile and conflict affected situations 2009 60.06832 1273.6003
F1 Fragile and conflict affected situations 2010 60.46104 1479.2341
F1 Fragile and conflict affected situations 2011 60.83538 1588.4297
FI Finland 2008 79.56829 53401.3149
FI Finland 2009 79.71951 47107.1557
FI Finland 2010 79.87073 46202.4152
FI Finland 2011 80.47073 50790.7241
FJ Fiji 2008 68.90900 4177.6578
FJ Fiji 2009 69.08700 3369.4082
FJ Fiji 2010 69.26700 3651.9668
FJ Fiji 2011 69.44800 4353.1214
FM Micronesia, Fed. Sts. 2008 68.37500 2516.0187
FM Micronesia, Fed. Sts. 2009 68.48400 2693.0233
FM Micronesia, Fed. Sts. 2010 68.58200 2861.7713
FM Micronesia, Fed. Sts. 2011 68.67300 3000.9481
FO Faroe Islands 2008 80.18780 49773.1669
FO Faroe Islands 2009 80.38780 46521.5017
FO Faroe Islands 2010 80.63659 47397.9029
FO Faroe Islands 2011 80.88780 50789.0486
FR France 2008 81.21463 45334.1109
FR France 2009 81.41463 41575.4162
FR France 2010 81.66341 40638.3340
FR France 2011 82.11463 43790.7354
GA Gabon 2008 61.59700 10094.0275
GA Gabon 2009 62.24700 7603.6602
GA Gabon 2010 62.89300 8754.1422
GA Gabon 2011 63.51900 10716.2244
GB United Kingdom 2008 79.60000 46767.5922
GB United Kingdom 2009 80.05122 38262.1821
GB United Kingdom 2010 80.40244 38893.0185
GB United Kingdom 2011 80.95122 41412.3492
GD Grenada 2008 72.14200 7947.4443
GD Grenada 2009 72.38300 7395.0881
GD Grenada 2010 72.61800 7365.6667
GD Grenada 2011 72.84000 7410.4084
GE Georgia 2008 72.67300 3174.9490
GE Georgia 2009 72.65000 2706.5885
GE Georgia 2010 72.64900 2964.4770
GE Georgia 2011 72.68000 3725.0632
GH Ghana 2008 60.12800 1224.4016
GH Ghana 2009 60.55000 1086.7650
GH Ghana 2010 60.92400 1312.6076
GH Ghana 2011 61.25400 1574.9787
GI Gibraltar 2008 NA NA
GI Gibraltar 2009 NA NA
GI Gibraltar 2010 NA NA
GI Gibraltar 2011 NA NA
GL Greenland 2008 70.21341 44367.0556
GL Greenland 2009 70.46780 44918.5649
GL Greenland 2010 70.85707 43988.3325
GL Greenland 2011 71.06244 47186.9815
GM Gambia, The 2008 58.99100 607.9555
GM Gambia, The 2009 59.31600 549.3178
GM Gambia, The 2010 59.62200 562.4838
GM Gambia, The 2011 59.91100 514.3782
GN Guinea 2008 55.52100 679.0384
GN Guinea 2009 56.18500 615.0842
GN Guinea 2010 56.76500 647.8032
GN Guinea 2011 57.28200 590.0339
GQ Equatorial Guinea 2008 55.19000 22742.3816
GQ Equatorial Guinea 2009 55.54300 16530.2094
GQ Equatorial Guinea 2010 55.90800 17136.4457
GQ Equatorial Guinea 2011 56.26500 21451.8862
GR Greece 2008 79.93902 31997.2820
GR Greece 2009 80.18780 29710.9703
GR Greece 2010 80.38780 26917.7590
GR Greece 2011 80.73171 25916.2935
GT Guatemala 2008 70.76000 2794.2218
GT Guatemala 2009 71.12200 2635.7535
GT Guatemala 2010 71.49400 2825.5241
GT Guatemala 2011 71.86700 3187.8453
GU Guam 2008 77.54300 29056.4970
GU Guam 2009 77.84000 30025.5603
GU Guam 2010 78.13400 30700.4340
GU Guam 2011 78.41900 30862.1100
GW Guinea-Bissau 2008 54.33300 583.8944
GW Guinea-Bissau 2009 54.68700 544.8613
GW Guinea-Bissau 2010 55.05000 546.7217
GW Guinea-Bissau 2011 55.42400 688.7718
GY Guyana 2008 65.83600 2576.1250
GY Guyana 2009 65.92900 2764.3063
GY Guyana 2010 66.02200 3044.9491
GY Guyana 2011 66.11700 3438.8254
HK Hong Kong SAR, China 2008 82.37561 31515.6628
HK Hong Kong SAR, China 2009 82.77561 30697.3404
HK Hong Kong SAR, China 2010 82.97805 32549.9982
HK Hong Kong SAR, China 2011 83.42195 35142.4879
HN Honduras 2008 72.09300 1751.5959
HN Honduras 2009 72.27000 1815.4895
HN Honduras 2010 72.44600 1932.8583
HN Honduras 2011 72.62400 2120.5895
HR Croatia 2008 75.91220 15893.8605
HR Croatia 2009 76.16829 14157.1548
HR Croatia 2010 76.47561 13542.9018
HR Croatia 2011 76.77561 14571.4909
HT Haiti 2008 60.44800 674.7564
HT Haiti 2009 60.87600 668.2976
HT Haiti 2010 61.29600 662.2795
HT Haiti 2011 61.69900 740.9358
HU Hungary 2008 73.70244 15739.7354
HU Hungary 2009 73.90488 13029.8834
HU Hungary 2010 74.20732 13092.2338
HU Hungary 2011 74.85854 14118.1226
ID Indonesia 2008 67.77500 2160.5276
ID Indonesia 2009 67.96400 2254.4456
ID Indonesia 2010 68.15000 3113.4806
ID Indonesia 2011 68.33100 3634.2768
IE Ireland 2008 80.09512 61257.8969
IE Ireland 2009 80.19024 52104.0347
IE Ireland 2010 80.74390 48671.8883
IE Ireland 2011 80.74634 52186.4963
IL Israel 2008 80.95122 29531.5722
IL Israel 2009 81.40488 27709.1175
IL Israel 2010 81.60244 30642.9406
IL Israel 2011 81.65610 33689.8385
IM Isle of Man 2008 NA 74203.1318
IM Isle of Man 2009 NA 69172.1860
IM Isle of Man 2010 NA 73935.6790
IM Isle of Man 2011 NA 76055.5421
IN India 2008 65.80200 991.4846
IN India 2009 66.21900 1090.3178
IN India 2010 66.62500 1345.7702
IN India 2011 67.01300 1461.6720
IQ Iraq 2008 68.17700 4521.0325
IQ Iraq 2009 68.28300 3735.1448
IQ Iraq 2010 68.46500 4502.7490
IQ Iraq 2011 68.70200 5854.6145
IR Iran, Islamic Rep. 2008 73.04400 5574.4104
IR Iran, Islamic Rep. 2009 73.48100 5619.1176
IR Iran, Islamic Rep. 2010 73.93200 6531.9274
IR Iran, Islamic Rep. 2011 74.37500 7729.3434
IS Iceland 2008 81.60976 55632.1043
IS Iceland 2009 81.75122 40640.9902
IS Iceland 2010 81.89756 41851.7355
IS Iceland 2011 82.35854 46181.9529
IT Italy 2008 81.48537 40640.1839
IT Italy 2009 81.63659 36976.8455
IT Italy 2010 82.03659 35849.3732
IT Italy 2011 82.18780 38334.6839
JG Channel Islands 2008 79.72900 NA
JG Channel Islands 2009 79.94700 NA
JG Channel Islands 2010 80.14500 NA
JG Channel Islands 2011 80.32600 NA
JM Jamaica 2008 74.33400 4902.5120
JM Jamaica 2009 74.61900 4293.3228
JM Jamaica 2010 74.88300 4682.5212
JM Jamaica 2011 75.12200 5103.3561
JO Jordan 2008 73.08700 3385.6097
JO Jordan 2009 73.25000 3492.1309
JO Jordan 2010 73.41200 3679.1903
JO Jordan 2011 73.57100 3807.3241
JP Japan 2008 82.58756 39339.2976
JP Japan 2009 82.93146 40855.1756
JP Japan 2010 82.84268 44507.6764
JP Japan 2011 82.59122 48167.9973
KE Kenya 2008 60.27500 916.8993
KE Kenya 2009 61.68000 920.0816
KE Kenya 2010 62.93600 967.3505
KE Kenya 2011 64.00800 987.4809
KG Kyrgyz Republic 2008 68.45122 966.3936
KG Kyrgyz Republic 2009 69.10244 871.2244
KG Kyrgyz Republic 2010 69.30000 880.0378
KG Kyrgyz Republic 2011 69.60244 1123.8832
KH Cambodia 2008 65.39100 745.7878
KH Cambodia 2009 66.01000 738.2327
KH Cambodia 2010 66.55500 785.6929
KH Cambodia 2011 67.03400 882.4901
KI Kiribati 2008 65.14600 1413.3023
KI Kiribati 2009 65.24400 1297.2851
KI Kiribati 2010 65.35400 1493.1605
KI Kiribati 2011 65.48100 1692.6133
KM Comoros 2008 61.09400 795.9705
KM Comoros 2009 61.47500 778.5454
KM Comoros 2010 61.86200 769.1743
KM Comoros 2011 62.24000 829.7587
KN St. Kitts and Nevis 2008 NA 14681.3668
KN St. Kitts and Nevis 2009 NA 14212.3396
KN St. Kitts and Nevis 2010 NA 13704.2545
KN St. Kitts and Nevis 2011 NA 14483.4435
KP Korea, Dem. People’s Rep. 2008 68.88600 NA
KP Korea, Dem. People’s Rep. 2009 69.18700 NA
KP Korea, Dem. People’s Rep. 2010 69.57200 NA
KP Korea, Dem. People’s Rep. 2011 70.01100 NA
KR Korea, Rep. 2008 79.51707 20430.6395
KR Korea, Rep. 2009 79.96829 18291.9196
KR Korea, Rep. 2010 80.11707 22086.9529
KR Korea, Rep. 2011 80.56829 24079.7885
KW Kuwait 2008 73.76400 55571.9981
KW Kuwait 2009 73.86800 37567.3012
KW Kuwait 2010 73.97900 38497.6170
KW Kuwait 2011 74.09600 48268.5912
KY Cayman Islands 2008 NA NA
KY Cayman Islands 2009 NA NA
KY Cayman Islands 2010 82.19024 NA
KY Cayman Islands 2011 NA NA
KZ Kazakhstan 2008 67.02195 8513.5646
KZ Kazakhstan 2009 68.42927 7165.2232
KZ Kazakhstan 2010 68.29537 9070.4883
KZ Kazakhstan 2011 68.98000 11634.0019
LA Lao PDR 2008 63.40200 899.4951
LA Lao PDR 2009 63.89300 948.1276
LA Lao PDR 2010 64.35700 1141.1271
LA Lao PDR 2011 64.79500 1381.4256
LB Lebanon 2008 77.88100 7109.4664
LB Lebanon 2009 78.17300 8480.9455
LB Lebanon 2010 78.43000 8858.2840
LB Lebanon 2011 78.65600 8734.1892
LC St. Lucia 2008 74.02000 7577.2096
LC St. Lucia 2009 74.26500 7384.8593
LC St. Lucia 2010 74.46500 8007.6965
LC St. Lucia 2011 74.63300 8270.5418
LI Liechtenstein 2008 82.68293 142973.8309
LI Liechtenstein 2009 81.50000 125945.0096
LI Liechtenstein 2010 81.84146 141165.0829
LI Liechtenstein 2011 81.79268 158283.0763
LK Sri Lanka 2008 74.20700 2041.2907
LK Sri Lanka 2009 74.27000 2095.5315
LK Sri Lanka 2010 74.35200 2808.5460
LK Sri Lanka 2011 74.46200 3213.8745
LR Liberia 2008 58.16700 232.0617
LR Liberia 2009 58.97700 303.0667
LR Liberia 2010 59.63100 327.4205
LR Liberia 2011 60.15500 379.6896
LS Lesotho 2008 49.11200 935.3941
LS Lesotho 2009 50.01400 924.1059
LS Lesotho 2010 50.82600 1169.2678
LS Lesotho 2011 51.53000 1350.6777
LT Lithuania 2008 71.81220 14961.5682
LT Lithuania 2009 72.91463 11837.3910
LT Lithuania 2010 73.26829 11984.8686
LT Lithuania 2011 73.56341 14357.7352
LU Luxembourg 2008 80.53902 114293.8433
LU Luxembourg 2009 80.63659 103198.6693
LU Luxembourg 2010 80.63171 104965.3061
LU Luxembourg 2011 80.98780 115761.5077
LV Latvia 2008 72.41951 16348.5312
LV Latvia 2009 73.08049 12219.3738
LV Latvia 2010 73.48293 11326.2195
LV Latvia 2011 73.57561 13702.6895
LY Libya 2008 71.68100 14396.0486
LY Libya 2009 71.67900 10296.9735
LY Libya 2010 71.64300 12120.5622
LY Libya 2011 71.59800 5602.5494
MA Morocco 2008 73.09700 2884.9478
MA Morocco 2009 73.57200 2861.5540
MA Morocco 2010 73.99900 2834.2047
MA Morocco 2011 74.37700 3039.9160
MC Monaco 2008 NA 192989.1895
MC Monaco 2009 NA 152111.5980
MC Monaco 2010 NA 144246.3688
MC Monaco 2011 NA 162009.8778
MD Moldova 2008 68.67100 1695.9728
MD Moldova 2009 69.11900 1525.5261
MD Moldova 2010 69.61600 1631.5358
MD Moldova 2011 70.11700 1970.5714
ME Montenegro 2008 74.46200 7367.7519
ME Montenegro 2009 74.85800 6727.1078
ME Montenegro 2010 75.28000 6682.2812
ME Montenegro 2011 75.70000 7318.7424
MF St. Martin (French part) 2008 78.37073 NA
MF St. Martin (French part) 2009 78.57073 NA
MF St. Martin (French part) 2010 78.72195 NA
MF St. Martin (French part) 2011 78.87073 NA
MG Madagascar 2008 62.50900 470.7333
MG Madagascar 2009 62.94400 415.6893
MG Madagascar 2010 63.38800 412.7309
MG Madagascar 2011 63.83600 454.9635
MH Marshall Islands 2008 NA 2925.9776
MH Marshall Islands 2009 NA 2917.0011
MH Marshall Islands 2010 NA 3146.7639
MH Marshall Islands 2011 NA 3297.5581
MK Macedonia, FYR 2008 74.30500 4793.2930
MK Macedonia, FYR 2009 74.45700 4543.8902
MK Macedonia, FYR 2010 74.63200 4542.9041
MK Macedonia, FYR 2011 74.82400 5064.0411
ML Mali 2008 54.19300 689.6784
ML Mali 2009 54.75600 697.0153
ML Mali 2010 55.24900 708.3708
ML Mali 2011 55.69400 835.0889
MM Myanmar 2008 64.50100 643.9514
MM Myanmar 2009 64.83800 741.0777
MM Myanmar 2010 65.17800 987.7366
MM Myanmar 2011 65.50600 1186.4239
MN Mongolia 2008 66.44900 2139.6256
MN Mongolia 2009 66.92000 1717.8988
MN Mongolia 2010 67.38300 2650.3536
MN Mongolia 2011 67.82000 3769.5953
MO Macao SAR, China 2008 82.22000 40667.8842
MO Macao SAR, China 2009 82.46200 40881.3806
MO Macao SAR, China 2010 82.70400 52374.7944
MO Macao SAR, China 2011 82.93700 66813.3497
MP Northern Mariana Islands 2008 NA 16350.0548
MP Northern Mariana Islands 2009 NA 14279.5560
MP Northern Mariana Islands 2010 NA 14681.0231
MP Northern Mariana Islands 2011 NA 13628.0817
MR Mauritania 2008 61.46100 1167.5357
MR Mauritania 2009 61.73000 1046.8379
MR Mauritania 2010 61.99700 1203.3837
MR Mauritania 2011 62.25300 1393.2617
MT Malta 2008 79.63659 21928.7007
MT Malta 2009 80.24146 20675.5826
MT Malta 2010 81.39756 21087.7947
MT Malta 2011 80.74634 22840.2021
MU Mauritius 2008 72.57073 8030.0630
MU Mauritius 2009 72.88244 7318.1264
MU Mauritius 2010 72.96732 8000.3764
MU Mauritius 2011 73.26683 9197.0270
MV Maldives 2008 75.64800 6583.4512
MV Maldives 2009 75.92000 6615.7638
MV Maldives 2010 76.11200 7100.4059
MV Maldives 2011 76.25900 7395.6878
MW Malawi 2008 54.17700 372.8427
MW Malawi 2009 55.74500 420.7380
MW Malawi 2010 57.26300 458.8682
MW Malawi 2011 58.66700 512.1254
MX Mexico 2008 75.80200 9765.7168
MX Mexico 2009 75.94800 7792.2478
MX Mexico 2010 76.09600 9016.4578
MX Mexico 2011 76.25100 9912.5820
MY Malaysia 2008 73.85200 8513.6295
MY Malaysia 2009 74.02200 7326.7444
MY Malaysia 2010 74.21000 9071.3570
MY Malaysia 2011 74.40800 10405.1206
MZ Mozambique 2008 53.45900 503.1277
MZ Mozambique 2009 54.09600 463.8526
MZ Mozambique 2010 54.70000 419.2258
MZ Mozambique 2011 55.28800 526.5314
NA Namibia 2008 55.69700 4029.0651
NA Namibia 2009 56.88300 4153.4979
NA Namibia 2010 58.18900 5191.5831
NA Namibia 2011 59.52700 5600.9714
NC New Caledonia 2008 76.68049 NA
NC New Caledonia 2009 76.98049 NA
NC New Caledonia 2010 77.25912 NA
NC New Caledonia 2011 76.64684 NA
NE Niger 2008 55.35000 354.8186
NE Niger 2009 56.10500 341.2895
NE Niger 2010 56.83800 348.1515
NE Niger 2011 57.52800 375.5820
NG Nigeria 2008 49.88700 1383.8934
NG Nigeria 2009 50.38500 1097.6614
NG Nigeria 2010 50.84700 2327.3207
NG Nigeria 2011 51.27900 2527.9420
NI Nicaragua 2008 73.02800 1518.8054
NI Nicaragua 2009 73.36900 1464.4978
NI Nicaragua 2010 73.69900 1526.4979
NI Nicaragua 2011 74.01600 1682.9579
NL Netherlands 2008 80.25122 56928.8205
NL Netherlands 2009 80.54878 51900.3401
NL Netherlands 2010 80.70244 50338.2548
NL Netherlands 2011 81.20488 53540.6054
NO Norway 2008 80.59268 97007.9419
NO Norway 2009 80.79512 80067.1766
NO Norway 2010 80.99756 87770.2668
NO Norway 2011 81.29512 100711.2248
NP Nepal 2008 67.03600 473.8444
NP Nepal 2009 67.48400 480.7201
NP Nepal 2010 67.91400 592.1835
NP Nepal 2011 68.32900 692.1167
NR Nauru 2008 NA 3954.3151
NR Nauru 2009 NA 4453.5899
NR Nauru 2010 NA 4912.5996
NR Nauru 2011 NA 7233.9466
NZ New Zealand 2008 80.35122 31287.7786
NZ New Zealand 2009 80.70244 28201.2323
NZ New Zealand 2010 80.70244 33692.0108
NZ New Zealand 2011 80.90488 38426.5508
OE OECD members 2008 78.91502 37139.6638
OE OECD members 2009 79.18116 34499.9444
OE OECD members 2010 79.36097 35907.0172
OE OECD members 2011 79.60329 38386.4877
OM Oman 2008 75.18800 22075.0354
OM Oman 2009 75.45100 16784.3462
OM Oman 2010 75.69400 19281.0008
OM Oman 2011 75.92200 20986.0850
PA Panama 2008 76.46000 7154.1443
PA Panama 2009 76.64100 7575.7806
PA Panama 2010 76.82800 8080.8382
PA Panama 2011 77.02100 9354.9794
PE Peru 2008 73.25800 4208.8780
PE Peru 2009 73.47500 4166.0934
PE Peru 2010 73.68100 5022.4932
PE Peru 2011 73.88300 5771.5659
PF French Polynesia 2008 75.12300 NA
PF French Polynesia 2009 75.39700 NA
PF French Polynesia 2010 75.64300 NA
PF French Polynesia 2011 75.86200 NA
PG Papua New Guinea 2008 64.24700 1719.5163
PG Papua New Guinea 2009 64.45500 1672.4909
PG Papua New Guinea 2010 64.63400 2004.8181
PG Papua New Guinea 2011 64.79100 2474.0618
PH Philippines 2008 68.10500 1919.4662
PH Philippines 2009 68.21100 1825.3415
PH Philippines 2010 68.32000 2129.4992
PH Philippines 2011 68.43300 2352.5182
PK Pakistan 2008 64.56500 1039.3121
PK Pakistan 2009 64.84500 1006.6040
PK Pakistan 2010 65.13400 1040.1423
PK Pakistan 2011 65.41900 1226.2153
PL Poland 2008 75.54390 14001.4469
PL Poland 2009 75.69512 11527.5932
PL Poland 2010 76.24634 12599.5336
PL Poland 2011 76.69512 13893.5093
PR Puerto Rico 2008 77.90349 24898.3388
PR Puerto Rico 2009 78.14980 25768.7360
PR Puerto Rico 2010 78.40817 26435.7402
PR Puerto Rico 2011 78.67120 27278.8749
PS West Bank and Gaza 2008 72.11000 1855.4570
PS West Bank and Gaza 2009 72.27700 1963.2015
PS West Bank and Gaza 2010 72.44400 2338.7199
PS West Bank and Gaza 2011 72.61300 2664.9514
PT Portugal 2008 78.52439 24815.6088
PT Portugal 2009 78.72683 23063.9716
PT Portugal 2010 79.02683 22538.6541
PT Portugal 2011 80.47073 23196.1838
PW Palau 2008 NA 9731.3279
PW Palau 2009 NA 8980.4297
PW Palau 2010 NA 8932.2814
PW Palau 2011 NA 9379.4893
PY Paraguay 2008 71.88700 3059.9922
PY Paraguay 2009 72.08900 2599.5963
PY Paraguay 2010 72.28500 3225.5918
PY Paraguay 2011 72.47000 3988.0119
QA Qatar 2008 77.04900 82967.3723
QA Qatar 2009 77.16900 61478.2381
QA Qatar 2010 77.30100 70306.2278
QA Qatar 2011 77.44300 85948.0705
RO Romania 2008 72.56585 10400.5437
RO Romania 2009 73.30976 8474.8720
RO Romania 2010 73.45854 8231.3128
RO Romania 2011 74.40976 9150.8686
RS Serbia 2008 73.88537 6701.7739
RS Serbia 2009 73.98537 5821.3054
RS Serbia 2010 74.33659 5411.8774
RS Serbia 2011 74.53659 6423.2918
RU Russian Federation 2008 67.94927 11635.2604
RU Russian Federation 2009 68.68463 8562.8096
RU Russian Federation 2010 68.84122 10674.9877
RU Russian Federation 2011 69.68390 14351.2121
RW Rwanda 2008 60.56500 500.6190
RW Rwanda 2009 61.96200 539.1085
RW Rwanda 2010 63.14000 563.4013
RW Rwanda 2011 64.10600 624.1229
S1 Small states 2008 65.58405 11787.0472
S1 Small states 2009 66.13974 9860.5036
S1 Small states 2010 66.64691 11095.1153
S1 Small states 2011 67.11005 13173.5445
S2 Pacific island small states 2008 68.97835 3040.9635
S2 Pacific island small states 2009 69.24903 2643.0824
S2 Pacific island small states 2010 69.51435 2896.7500
S2 Pacific island small states 2011 69.77275 3401.0634
S3 Caribbean small states 2008 71.81658 9988.7449
S3 Caribbean small states 2009 72.04215 8365.0339
S3 Caribbean small states 2010 72.25239 9039.2886
S3 Caribbean small states 2011 72.44463 9728.0013
S4 Other small states 2008 63.60937 13039.2898
S4 Other small states 2009 64.31275 10881.2463
S4 Other small states 2010 64.94919 12332.7897
S4 Other small states 2011 65.52610 14888.6338
SA Saudi Arabia 2008 73.33100 20037.8323
SA Saudi Arabia 2009 73.44000 16094.2931
SA Saudi Arabia 2010 73.57400 19259.5873
SA Saudi Arabia 2011 73.73000 23770.7474
SB Solomon Islands 2008 67.64100 1205.7911
SB Solomon Islands 2009 68.11800 1158.2827
SB Solomon Islands 2010 68.57200 1290.5724
SB Solomon Islands 2011 69.00100 1728.5052
SC Seychelles 2008 73.16341 11122.8621
SC Seychelles 2009 73.08293 9706.9561
SC Seychelles 2010 73.19756 10804.6845
SC Seychelles 2011 72.72439 12189.0952
SD Sudan 2008 61.74900 1291.5288
SD Sudan 2009 62.19300 1226.8844
SD Sudan 2010 62.62000 1476.4781
SD Sudan 2011 63.01900 1666.8578
SE Sweden 2008 81.10000 55746.8424
SE Sweden 2009 81.35122 46207.0592
SE Sweden 2010 81.45122 52076.2559
SE Sweden 2011 81.80244 59593.2871
SG Singapore 2008 80.79024 39721.0482
SG Singapore 2009 81.24146 38577.5582
SG Singapore 2010 81.54146 46569.6795
SG Singapore 2011 81.74390 53237.5649
SI Slovenia 2008 78.76585 27501.8103
SI Slovenia 2009 78.97073 24633.7979
SI Slovenia 2010 79.42195 23437.4720
SI Slovenia 2011 79.97073 24985.2483
SK Slovak Republic 2008 74.70488 18650.3591
SK Slovak Republic 2009 74.90976 16512.9820
SK Slovak Republic 2010 75.11220 16600.6136
SK Slovak Republic 2011 75.95854 18187.1574
SL Sierra Leone 2008 46.43200 406.3759
SL Sierra Leone 2009 47.34800 388.8746
SL Sierra Leone 2010 48.22400 399.1544
SL Sierra Leone 2011 49.03400 445.0520
SM San Marino 2008 NA 90682.5810
SM San Marino 2009 NA 76918.1536
SM San Marino 2010 NA 68758.3686
SM San Marino 2011 NA 65213.6190
SN Senegal 2008 62.75500 1101.2021
SN Senegal 2009 63.48500 1021.0379
SN Senegal 2010 64.17700 1002.5299
SN Senegal 2011 64.81400 1081.9393
SO Somalia 2008 53.32300 NA
SO Somalia 2009 53.65200 NA
SO Somalia 2010 53.98600 NA
SO Somalia 2011 54.33200 NA
SR Suriname 2008 69.74900 6858.1632
SR Suriname 2009 70.05700 7443.8502
SR Suriname 2010 70.33500 8303.3133
SR Suriname 2011 70.57800 8318.9769
SS South Sudan 2008 52.59100 NA
SS South Sudan 2009 53.11300 NA
SS South Sudan 2010 53.65500 NA
SS South Sudan 2011 54.20600 1653.1316
ST Sao Tome and Principe 2008 65.50000 1126.4621
ST Sao Tome and Principe 2009 65.70900 1099.5710
ST Sao Tome and Principe 2010 65.87500 1129.7550
ST Sao Tome and Principe 2011 66.00800 1304.3262
SV El Salvador 2008 71.29100 2943.6989
SV El Salvador 2009 71.59900 2867.9851
SV El Salvador 2010 71.90200 2992.5453
SV El Salvador 2011 72.19500 3275.5086
SX Sint Maarten (Dutch part) 2008 74.53659 NA
SX Sint Maarten (Dutch part) 2009 75.58780 NA
SX Sint Maarten (Dutch part) 2010 NA NA
SX Sint Maarten (Dutch part) 2011 NA NA
SY Syrian Arab Republic 2008 73.64800 NA
SY Syrian Arab Republic 2009 72.93900 NA
SY Syrian Arab Republic 2010 72.10800 NA
SY Syrian Arab Republic 2011 71.27000 NA
SZ Swaziland 2008 48.96900 2842.4385
SZ Swaziland 2009 50.26000 3032.5170
SZ Swaziland 2010 51.59800 3690.2392
SZ Swaziland 2011 52.91200 3934.2734
T2 Latin America & the Caribbean (IDA & IBRD countries) 2008 73.60593 7771.9136
T2 Latin America & the Caribbean (IDA & IBRD countries) 2009 73.85487 7186.5778
T2 Latin America & the Caribbean (IDA & IBRD countries) 2010 74.10008 8869.2779
T2 Latin America & the Caribbean (IDA & IBRD countries) 2011 74.34115 9995.3402
T3 Middle East & North Africa (IDA & IBRD countries) 2008 71.31989 3840.6813
T3 Middle East & North Africa (IDA & IBRD countries) 2009 71.53799 3648.6118
T3 Middle East & North Africa (IDA & IBRD countries) 2010 71.74689 4143.2887
T3 Middle East & North Africa (IDA & IBRD countries) 2011 71.95173 4611.0760
T4 East Asia & Pacific (IDA & IBRD countries) 2008 73.12350 3124.2841
T4 East Asia & Pacific (IDA & IBRD countries) 2009 73.33564 3364.5280
T4 East Asia & Pacific (IDA & IBRD countries) 2010 73.53187 4051.8658
T4 East Asia & Pacific (IDA & IBRD countries) 2011 73.71538 4917.9268
T5 South Asia (IDA & IBRD) 2008 66.03715 956.6285
T5 South Asia (IDA & IBRD) 2009 66.43653 1036.0317
T5 South Asia (IDA & IBRD) 2010 66.82676 1252.2293
T5 South Asia (IDA & IBRD) 2011 67.20120 1373.8091
T6 Sub-Saharan Africa (IDA & IBRD countries) 2008 55.43009 1282.6826
T6 Sub-Saharan Africa (IDA & IBRD countries) 2009 56.20432 1198.1410
T6 Sub-Saharan Africa (IDA & IBRD countries) 2010 56.94395 1554.5015
T6 Sub-Saharan Africa (IDA & IBRD countries) 2011 57.63677 1705.6188
T7 Europe & Central Asia (IDA & IBRD countries) 2008 70.42613 8933.2860
T7 Europe & Central Asia (IDA & IBRD countries) 2009 70.98135 7052.0008
T7 Europe & Central Asia (IDA & IBRD countries) 2010 71.30270 8231.7392
T7 Europe & Central Asia (IDA & IBRD countries) 2011 71.85356 9963.9275
TC Turks and Caicos Islands 2008 NA NA
TC Turks and Caicos Islands 2009 NA NA
TC Turks and Caicos Islands 2010 NA NA
TC Turks and Caicos Islands 2011 NA NA
TD Chad 2008 49.18200 929.7702
TD Chad 2009 49.69100 804.4559
TD Chad 2010 50.23300 896.5697
TD Chad 2011 50.77800 989.2364
TG Togo 2008 56.17400 513.3919
TG Togo 2009 56.81400 499.6469
TG Togo 2010 57.46500 487.9239
TG Togo 2011 58.09200 562.3394
TH Thailand 2008 73.27900 4378.6874
TH Thailand 2009 73.61700 4212.0549
TH Thailand 2010 73.92300 5075.3022
TH Thailand 2011 74.19700 5491.1600
TJ Tajikistan 2008 68.90200 706.0914
TJ Tajikistan 2009 69.29000 666.3459
TJ Tajikistan 2010 69.64400 738.3475
TJ Tajikistan 2011 69.95800 834.5413
TL Timor-Leste 2008 66.47200 4073.1776
TL Timor-Leste 2009 66.95600 2929.9348
TL Timor-Leste 2010 67.31300 3603.7573
TL Timor-Leste 2011 67.57800 5021.4983
TM Turkmenistan 2008 66.03100 3904.4677
TM Turkmenistan 2009 66.35500 4036.4592
TM Turkmenistan 2010 66.65700 4439.2030
TM Turkmenistan 2011 66.92800 5649.9785
TN Tunisia 2008 74.59500 4310.0930
TN Tunisia 2009 74.69500 4129.9773
TN Tunisia 2010 74.79300 4140.1518
TN Tunisia 2011 74.90000 4256.9128
TO Tonga 2008 71.90600 3392.8880
TO Tonga 2009 72.03900 3070.9872
TO Tonga 2010 72.17300 3548.0684
TO Tonga 2011 72.30800 4044.9797
TR Turkey 2008 73.54900 10850.8704
TR Turkey 2009 73.85900 9036.2667
TR Turkey 2010 74.15400 10672.4002
TR Turkey 2011 74.43700 11340.8236
TT Trinidad and Tobago 2008 69.38400 21188.1186
TT Trinidad and Tobago 2009 69.56700 14508.8796
TT Trinidad and Tobago 2010 69.75600 16683.9458
TT Trinidad and Tobago 2011 69.94200 19053.9707
TV Tuvalu 2008 NA 2929.4216
TV Tuvalu 2009 NA 2595.6399
TV Tuvalu 2010 NA 3021.8895
TV Tuvalu 2011 NA 3642.4377
TZ Tanzania 2008 59.15600 651.2624
TZ Tanzania 2009 60.04800 658.7580
TZ Tanzania 2010 60.89300 701.6046
TZ Tanzania 2011 61.71300 733.4128
UA Ukraine 2008 68.25146 3891.0378
UA Ukraine 2009 69.19000 2545.4803
UA Ukraine 2010 70.26537 2965.1424
UA Ukraine 2011 70.80927 3569.7570
UG Uganda 2008 55.57400 449.6928
UG Uganda 2009 56.40900 554.4050
UG Uganda 2010 57.15300 595.2062
UG Uganda 2011 57.79600 574.9196
US United States 2008 78.03902 48401.4273
US United States 2009 78.39024 47001.5553
US United States 2010 78.54146 48375.4069
US United States 2011 78.64146 49793.7135
UY Uruguay 2008 76.28200 9062.3122
UY Uruguay 2009 76.43600 9415.1704
UY Uruguay 2010 76.58800 11938.2120
UY Uruguay 2011 76.73900 14166.4991
UZ Uzbekistan 2008 69.31900 1082.2860
UZ Uzbekistan 2009 69.66500 1213.2653
UZ Uzbekistan 2010 70.00500 1377.0821
UZ Uzbekistan 2011 70.32200 1564.9669
V1 Pre-demographic dividend 2008 55.64972 1157.3609
V1 Pre-demographic dividend 2009 56.31425 1019.5407
V1 Pre-demographic dividend 2010 56.94126 1368.3817
V1 Pre-demographic dividend 2011 57.52631 1540.4929
V2 Early-demographic dividend 2008 67.21738 2583.5252
V2 Early-demographic dividend 2009 67.59018 2447.5527
V2 Early-demographic dividend 2010 67.95573 2927.9612
V2 Early-demographic dividend 2011 68.30810 3241.1354
V3 Late-demographic dividend 2008 73.93035 5404.4978
V3 Late-demographic dividend 2009 74.21741 5191.8219
V3 Late-demographic dividend 2010 74.44301 6191.2128
V3 Late-demographic dividend 2011 74.71367 7504.6335
V4 Post-demographic dividend 2008 79.15827 40575.0336
V4 Post-demographic dividend 2009 79.48016 38007.3049
V4 Post-demographic dividend 2010 79.68914 39447.1655
V4 Post-demographic dividend 2011 79.95805 42231.7465
VC St. Vincent and the Grenadines 2008 71.91400 6370.4379
VC St. Vincent and the Grenadines 2009 72.13000 6177.6105
VC St. Vincent and the Grenadines 2010 72.32700 6231.7702
VC St. Vincent and the Grenadines 2011 72.50100 6183.6768
VE Venezuela, RB 2008 73.41900 11227.2314
VE Venezuela, RB 2009 73.51600 11536.1494
VE Venezuela, RB 2010 73.62500 13545.2635
VE Venezuela, RB 2011 73.74800 10741.5764
VG British Virgin Islands 2008 NA NA
VG British Virgin Islands 2009 NA NA
VG British Virgin Islands 2010 NA NA
VG British Virgin Islands 2011 NA NA
VI Virgin Islands (U.S.) 2008 77.26341 39207.0038
VI Virgin Islands (U.S.) 2009 77.61463 38771.2744
VI Virgin Islands (U.S.) 2010 77.96585 40043.1902
VI Virgin Islands (U.S.) 2011 78.41707 39144.1658
VN Vietnam 2008 74.77700 1143.2686
VN Vietnam 2009 74.94600 1210.6911
VN Vietnam 2010 75.11700 1310.3703
VN Vietnam 2011 75.29400 1515.4799
VU Vanuatu 2008 70.15200 2697.9614
VU Vanuatu 2009 70.44200 2643.4414
VU Vanuatu 2010 70.72100 2965.8024
VU Vanuatu 2011 70.98800 3275.0917
WS Samoa 2008 72.28800 3509.7615
WS Samoa 2009 72.71000 3035.0683
WS Samoa 2010 73.12200 3453.4343
WS Samoa 2011 73.51300 3942.0516
XC Euro area 2008 80.30292 42220.0438
XC Euro area 2009 80.50518 38480.9223
XC Euro area 2010 80.74678 37605.1459
XC Euro area 2011 81.23280 40610.7258
XD High income 2008 79.20468 39326.2628
XD High income 2009 79.47623 36581.5916
XD High income 2010 79.65213 38137.9429
XD High income 2011 79.88972 41018.3914
XE Heavily indebted poor countries (HIPC) 2008 57.62982 706.6993
XE Heavily indebted poor countries (HIPC) 2009 58.33812 691.3598
XE Heavily indebted poor countries (HIPC) 2010 59.00159 744.2756
XE Heavily indebted poor countries (HIPC) 2011 59.61459 808.5917
XF IBRD only 2008 70.71104 3903.4349
XF IBRD only 2009 71.02264 3750.5979
XF IBRD only 2010 71.30434 4509.4960
XF IBRD only 2011 71.60006 5280.0654
XG IDA total 2008 60.20402 876.9233
XG IDA total 2009 60.74183 842.7446
XG IDA total 2010 61.24736 1059.9157
XG IDA total 2011 61.71612 1178.3875
XH IDA blend 2008 58.45229 1201.4432
XH IDA blend 2009 58.95741 1090.8024
XH IDA blend 2010 59.44707 1568.2584
XH IDA blend 2011 59.90258 1757.3628
XI IDA only 2008 61.06453 716.0601
XI IDA only 2009 61.61861 722.8042
XI IDA only 2010 62.13305 801.9144
XI IDA only 2011 62.60963 885.1420
XJ Latin America & Caribbean (excluding high income) 2008 73.41087 7487.2046
XJ Latin America & Caribbean (excluding high income) 2009 73.66923 6935.9105
XJ Latin America & Caribbean (excluding high income) 2010 73.92241 8525.5138
XJ Latin America & Caribbean (excluding high income) 2011 74.17012 9499.6571
XK Kosovo 2008 69.39756 3254.8607
XK Kosovo 2009 69.64878 3209.6941
XK Kosovo 2010 69.90000 3283.2119
XK Kosovo 2011 70.14878 3733.4915
XL Least developed countries: UN classification 2008 60.59196 705.7469
XL Least developed countries: UN classification 2009 61.20193 703.2512
XL Least developed countries: UN classification 2010 61.77920 779.3836
XL Least developed countries: UN classification 2011 62.31687 871.9178
XM Low income 2008 58.78453 579.2439
XM Low income 2009 59.43990 592.0783
XM Low income 2010 60.05003 628.5096
XM Low income 2011 60.61280 694.9390
XN Lower middle income 2008 65.43379 1327.7412
XN Lower middle income 2009 65.81242 1341.6723
XN Lower middle income 2010 66.18079 1675.1266
XN Lower middle income 2011 66.52262 1867.6905
XO Low & middle income 2008 68.15363 3034.6168
XO Low & middle income 2009 68.49759 2929.0025
XO Low & middle income 2010 68.80872 3530.0887
XO Low & middle income 2011 69.12368 4112.2735
XP Middle income 2008 69.24003 3319.4236
XP Middle income 2009 69.56426 3205.3760
XP Middle income 2010 69.85580 3876.3443
XP Middle income 2011 70.15600 4525.4850
XQ Middle East & North Africa (excluding high income) 2008 71.32867 3818.3840
XQ Middle East & North Africa (excluding high income) 2009 71.54629 3629.5697
XQ Middle East & North Africa (excluding high income) 2010 71.75481 4122.7449
XQ Middle East & North Africa (excluding high income) 2011 71.95933 4588.7104
XT Upper middle income 2008 73.35617 5473.0873
XT Upper middle income 2009 73.65381 5236.6610
XT Upper middle income 2010 73.89361 6294.6780
XT Upper middle income 2011 74.17902 7468.0578
XU North America 2008 78.30097 48232.3100
XU North America 2009 78.64291 46394.3848
XU North America 2010 78.80462 48291.0744
XU North America 2011 78.92054 50027.5782
XY Not classified 2008 NA NA
XY Not classified 2009 NA NA
XY Not classified 2010 NA NA
XY Not classified 2011 NA NA
YE Yemen, Rep. 2008 62.88800 1203.7207
YE Yemen, Rep. 2009 63.20800 1093.8129
YE Yemen, Rep. 2010 63.50800 1309.2319
YE Yemen, Rep. 2011 63.78600 1349.4202
Z4 East Asia & Pacific 2008 73.98084 6476.4471
Z4 East Asia & Pacific 2009 74.20726 6628.1434
Z4 East Asia & Pacific 2010 74.38391 7676.5192
Z4 East Asia & Pacific 2011 74.54606 8842.7158
Z7 Europe & Central Asia 2008 75.24749 26353.1599
Z7 Europe & Central Asia 2009 75.64077 23085.6873
Z7 Europe & Central Asia 2010 75.92923 23531.2015
Z7 Europe & Central Asia 2011 76.44176 26013.7769
ZA South Africa 2008 53.72000 5695.0579
ZA South Africa 2009 54.70100 5831.1156
ZA South Africa 2010 55.88800 7275.3821
ZA South Africa 2011 57.20100 7976.4661
ZF Sub-Saharan Africa (excluding high income) 2008 55.42823 1281.6516
ZF Sub-Saharan Africa (excluding high income) 2009 56.20259 1197.2709
ZF Sub-Saharan Africa (excluding high income) 2010 56.94228 1553.5569
ZF Sub-Saharan Africa (excluding high income) 2011 57.63530 1704.6026
ZG Sub-Saharan Africa 2008 55.43009 1282.6826
ZG Sub-Saharan Africa 2009 56.20432 1198.1410
ZG Sub-Saharan Africa 2010 56.94395 1554.5015
ZG Sub-Saharan Africa 2011 57.63677 1705.6188
ZJ Latin America & Caribbean 2008 73.73473 7874.2566
ZJ Latin America & Caribbean 2009 73.98046 7307.8814
ZJ Latin America & Caribbean 2010 74.22200 8954.1982
ZJ Latin America & Caribbean 2011 74.45906 10062.8443
ZM Zambia 2008 53.74900 1369.0682
ZM Zambia 2009 55.19400 1139.1102
ZM Zambia 2010 56.58800 1463.2136
ZM Zambia 2011 57.87200 1644.6197
ZQ Middle East & North Africa 2008 71.83395 7117.4923
ZQ Middle East & North Africa 2009 72.06009 6229.0308
ZQ Middle East & North Africa 2010 72.27177 7126.7719
ZQ Middle East & North Africa 2011 72.47397 8276.2729
ZT IDA & IBRD total 2008 68.27373 3201.4625
ZT IDA & IBRD total 2009 68.61407 3069.3055
ZT IDA & IBRD total 2010 68.92427 3692.3528
ZT IDA & IBRD total 2011 69.23738 4299.2979
ZW Zimbabwe 2008 49.33700 325.6786
ZW Zimbabwe 2009 51.12200 624.2722
ZW Zimbabwe 2010 52.97500 719.9795
ZW Zimbabwe 2011 54.80000 840.9499

1.2 Without Code




Sometimes it is usefull to show the code that you used to generate a plot or a statistical test. However, sometimes you might want to generate a report with only the results. Fear not! We can also do this…




1.2.1 Data Frame downloaded

We can visualise the first rows of the data.frame

1.2.2 Plot of the two variables

plot_ly(worlDIndic, x = ~GDPperCapita, y = ~LifeExpectancy,
        size = ~GDPperCapita, text = ~paste("Country: ", country))
## No trace type specified:
##   Based on info supplied, a 'scatter' trace seems appropriate.
##   Read more about this trace type -> https://plot.ly/r/reference/#scatter
## No scatter mode specifed:
##   Setting the mode to markers
##   Read more about this attribute -> https://plot.ly/r/reference/#scatter-mode
## Warning: Ignoring 107 observations
## Warning: `line.width` does not currently support multiple values.

1.2.3 Linear regression with life expectancy as dependent variable and GDP per Capita as independent variable

simple_model = lm(LifeExpectancy ~ GDPperCapita,worlDIndic)
title = "Linear Relation between GDP per Capita and Life expectancy"
stargazer(simple_model, type="html", report=('vc*p'),column.labels=c("Dependent Variable"), dep.var.caption = title, dep.var.labels.include = TRUE,model.names=FALSE, align=TRUE, column.sep.width = "5000pt") 
## 
## <table style="text-align:center"><tr><td colspan="2" style="border-bottom: 1px solid black"></td></tr><tr><td style="text-align:left"></td><td>Linear Relation between GDP per Capita and Life expectancy</td></tr>
## <tr><td></td><td colspan="1" style="border-bottom: 1px solid black"></td></tr>
## <tr><td style="text-align:left"></td><td>LifeExpectancy</td></tr>
## <tr><td style="text-align:left"></td><td>Dependent Variable</td></tr>
## <tr><td colspan="2" style="border-bottom: 1px solid black"></td></tr><tr><td style="text-align:left">GDPperCapita</td><td>0.0002<sup>***</sup></td></tr>
## <tr><td style="text-align:left"></td><td>p = 0.000</td></tr>
## <tr><td style="text-align:left"></td><td></td></tr>
## <tr><td style="text-align:left">Constant</td><td>66.637<sup>***</sup></td></tr>
## <tr><td style="text-align:left"></td><td>p = 0.000</td></tr>
## <tr><td style="text-align:left"></td><td></td></tr>
## <tr><td colspan="2" style="border-bottom: 1px solid black"></td></tr><tr><td style="text-align:left">Observations</td><td>949</td></tr>
## <tr><td style="text-align:left">R<sup>2</sup></td><td>0.361</td></tr>
## <tr><td style="text-align:left">Adjusted R<sup>2</sup></td><td>0.360</td></tr>
## <tr><td style="text-align:left">Residual Std. Error</td><td>6.709 (df = 947)</td></tr>
## <tr><td style="text-align:left">F Statistic</td><td>534.589<sup>***</sup> (df = 1; 947)</td></tr>
## <tr><td colspan="2" style="border-bottom: 1px solid black"></td></tr><tr><td style="text-align:left"><em>Note:</em></td><td style="text-align:right"><sup>*</sup>p<0.1; <sup>**</sup>p<0.05; <sup>***</sup>p<0.01</td></tr>
## </table>

MISSING

getXKCD(which = "random")
## Warning in readPNG(paste(tempdir(), "xkcd.png", sep = "/")): libpng
## warning: iCCP: known incorrect sRGB profile

## $month
## [1] "12"
## 
## $num
## [1] 832
## 
## $link
## [1] "http://xkcd.com/832_large/"
## 
## $year
## [1] "2010"
## 
## $news
## [1] ""
## 
## $safe_title
## [1] "Tic-Tac-Toe"
## 
## $transcript
## [1] "((The comic comprises two large square maps, each divided into nine sections, some of which are further subdivided in the same way.  The subdivisions continue down for up to five levels, and the lower map has more tiny diagrams than the upper. The smallest divisions at every scale are completed tic-tac-toe games.))\n\n[[Explanatory text:]]\nComplete map of optimal Tic-Tac-Toe moves\n\nYour move is given by the position of the largest red symbol on the grid. When your opponent picks a move, zoom in on the region of the grid where they went. Repeat.\n\nMap for X:\n((The first square map))\n\nMap for Y:\n((The second square map))\n\n{{Title text: The only winning move is to play, perfectly, waiting for your opponent to make a mistake.}}"
## 
## $alt
## [1] "The only winning move is to play, perfectly, waiting for your opponent to make a mistake."
## 
## $img
## [1] "https://imgs.xkcd.com/comics/tic_tac_toe.png"
## 
## $title
## [1] "Tic-Tac-Toe"
## 
## $day
## [1] "10"
## 
## attr(,"class")
## [1] "rxkcd"